<div class="panel panel-default panel-intro">
    {:build_heading()}


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('registr_activity/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('registr_activity/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>


                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('registr_activity/edit')}" 
                           data-operate-del="{:$auth->check('registr_activity/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <!--form表單必須添加form-commsearch這個類-->
    <form action="" class="form-commonsearch">
        <div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
            <h4>搜索條件</h4>
            <hr>
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">ID</label>
                        <!--隱式的operate操作符，必須攜帶一個class為operate隱藏的文本框,且它的data-name="字段",值為操作符-->
                        <input class="operate" type="hidden" data-name="id" value="="/>
                        <div>
                        <input class="form-control" type="text" name="id" placeholder="ID" value=""/>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">狀態</label>
                    <div class="form-inline" >
                        <select class=" form-control" name="status" >
                            <option value="">選擇</option>
                            <option value="1">開啟</option>
                            <option value="2">隱藏</option>
                        </select>
                        
                        <input type="hidden" class="status" data-name="status" value="=" />
                        
                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">活動名稱</label>
                        <!--隱式的operate操作符，必須攜帶一個class為operate隱藏的文本框,且它的data-name="字段",值為操作符-->
                        <input class="operate" type="hidden" data-name="name" value="like"/>
                        <div>
                        <input class="form-control" type="text" name="name" placeholder="請輸入活動名稱" value=""/>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">創建時間</label>
                        <!--隱式的operate操作符，必須攜帶一個class為operate隱藏的文本框,且它的data-name="字段",值為操作符-->
                        <input class="operate" type="hidden" data-name="click" value="RANGE"/>
                        <div>
                        <input class="form-control datetimerange" type="text" name="createtime" createtime placeholder="創建時間" value=""/>
                        </div>
                    </div>
                </div>
                
                <br/>
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label for="join_nun" class="control-label ">報名人數</label>
                        <div >
                            <input type="hidden" class="form-control operate" name="join_nun-operate" data-name="join_nun" value="BETWEEN" readonly="">
                            <div class="row row-between">
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" name="join_nun" value="" placeholder="報名人數" id="join_nun-min" data-index="4">
                                </div>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control" name="join_nun" value="" placeholder="報名人數" id="join_nun-max" data-index="4">
                                </div>
                            </div>
                        </div>
                    </div>
                   
                </div>
                {if $admin['affiliated_center_id'] == 0}
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">所屬中心</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="area_one_id">
                        <select class="area_one_id form-control" name="area_one_id" data-url="affiliated_center/area"></select>
                        <input type="hidden" class="operate" data-name="area_one_id" value="=" />
                    </div>
                </div>
                {/if}


                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label"></label>
                        <div class="row">
                            <div class="col-xs-6">
                                <input type="submit" class="btn btn-success btn-block" value="提交"/>
                            </div>
                            <div class="col-xs-6">
                                <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</script>